<!-- 文本修饰线 -->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文本修饰线</title>
    <style>
        a {
            text-decoration: none;
        }

        div {
            text-decoration: underline;
        }

        p {
            text-decoration: line-through;
        }

        span {
            text-decoration: overline;
        }
    </style>
</head>
<body>
    <a href="#">a标签去掉下划线</a>
    <div>div标签添加下划线</div>
    <p>p标签删除下划线</p>
    <span>span标签添加顶划线</span>
</body>
</html>